package com.duyj.rule.drools;

import org.drools.core.spi.KnowledgeHelper;
import org.drools.core.spi.Tuple;

public class Helper {


    public static void log(final KnowledgeHelper drools, final String message) {
        System.out.println(message);
        System.out.println("rule triggered: " + drools.getRule().getName());
    }

    public static void info(final KnowledgeHelper drools) {
        Tuple tuple = drools.getTuple();
        System.out.println(tuple);
        System.out.println("rule triggered: " + drools.getRule().getName());
    }
}
